package com.mall.core.service.auth;

import com.mall.service.data.LoginData;

public class Authenticator {
private Credential credential =null;
private boolean validorinvalid =false;
public Authenticator(Credential credential){
	this.credential = credential;
}
public Credential getCredential() {
	return credential;
}
public boolean authenticate(){
	LoginData logindata = new LoginData();
	logindata.createLoginData();
	for(Credential credential : logindata.getLoginData()){
		
	if(this.credential.getID().compareTo(credential.getID())==1){
		validorinvalid = true;
	}
	}
	return validorinvalid;
	
}
public void setCredential(Credential credential) {
	this.credential = credential;
}

}
